{% extends "zwitschern/base.html" %}

{% load i18n %}
{% load avatar_tags %}

{% block head_title %}{% blocktrans %}{{ other_user }} is Following{% endblocktrans %}{% endblock %}

{% block body %}
    <h1>{% blocktrans %}{{ other_user }} is Following{% endblocktrans %}</h1>
    
    {% url profiles.views.profile other_user.username as other_user_url %}
    <p>{% blocktrans %}Users whose tweets <a href="{{ other_user_url }}">{{ other_user }}</a> is following:{% endblocktrans %}</p>
    
    {% if other_user.followed.all %}
        {% for following in other_user.followed.all %}
            {# @@@ this is common code from all profiles list -- refactor #}
            <div class="profile clearfix">
                {# @@@ factor out style into css file #}
                <div style="float: left;">{% avatar following.followed 40 %}</div>
                <div style="padding: 5px; margin-left: 50px;"><a href="{% url profiles.views.profile following.followed.username %}">{{ following.followed }}</a></div>
            </div>
        {% endfor %}
    {% else %}
        <p>{% trans 'Not following anyone.' %}</p>
    {% endif %}
    
    {% url tweet_followers other_user.username as tweet_followers_url %}
    <p>{% blocktrans %}Also see <a href="{{ tweet_followers_url }}">who is following</a> {{ other_user }}.{% endblocktrans %}
{% endblock %}